class LogOut(object):
    @staticmethod
    def Error_log_out(logs):
        print('Errors start-------------------------------------------')
        print(logs)
        print('Errors end---------------------------------------------')
        with open('log.txt', 'a',encoding='utf-8') as f:
            f.write('\nErrors start-------------------------------------------\n')
            f.write(logs)
            f.write('\nErrors end--------------------------------------------\n')

    @staticmethod
    def process_log_output(logs):
        print(logs)
        with open('log.txt', 'a',encoding='utf-8') as f:
            f.write(logs+'\n')

    def Error_get_detail_news(self,logs):
        print('Errors start-------------------------------------------')
        print(logs)
        print('Errors end---------------------------------------------')
        with open('detail_log.txt', 'a', encoding='utf-8') as f:
            f.write('\nErrors start-------------------------------------------\n')
            f.write(logs)
            f.write('\nErrors end--------------------------------------------\n')
    def get_detail_news_progress(self,logs):
        print(logs)
        with open('detail_log.txt', 'a', encoding='utf-8') as f:
            f.write(logs + '\n')

LogOut = LogOut()